//
//  UIImage+XUtilExtension.h
//  XUtils
//
//  Created by Hongwei Wang on 2018/8/6.
//  Copyright © 2018年 Hongwei Wang. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (XUtilExtension)
//  颜色创建图片
//  color       创建图片的颜色
+ (UIImage *)imageWithColor:(UIColor *)color;

//头像默认图
+ (UIImage *)defaultHeadImage;

//正方形占位图
+ (UIImage *)squarePlaceHolder;
//长方形展位图
+ (UIImage *)rectanglePlaceHolder;

+ (UIImage *)bookPlaceholder;
+ (UIImage *)noCover;

- (UIImage *)blurryImageWithBlurLevel:(CGFloat)blur;

- (instancetype)circleImage;

- (instancetype)resetSize:(CGSize)size;
/**
 放大图片

 @param mutipilier 倍数
 @return 新的图片
 */
- (instancetype)expandWithMultiplier:(CGFloat)mutipilier;

/**
 宽度是否小于或等于高度

 @return yes|no
 */
- (BOOL)lengthIsMinWidth;

+ (UIImage *)imageWithCIImage:(CIImage *)ciImage size:(CGFloat)size;

@end

